package com.xxy.book.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Xu XianYun
 * @Date 2022-12-16
 * @Description
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {

    /* id */
    private Integer id;

    /* 用户名或账户名 */
    private String username;

    /* 密码 */
    private String password;

    /* 用于将密码加盐之后再加密*/
    private String salt;

    /* 激活状态 0-未激活 1-已激活 */
    private int status;

    /* 激活码 */
    private String activationCode;

    /* 邮箱 */
    private String email;

    /* 注册时间戳 */
    private Date createTime;

}
